import '../../scss/city.scss'
import React from 'react'
import {commonApi} from '../../api/common'
import {
    Router,
    Route,
    hashHistory,
    Link,
    browserHistory,
    IndexRoute
} from 'react-router'

export default React.createClass({
    getInitialState() {
        return {npc: []}
    },
    componentDidMount() {
        let self = this
    },
    openPanel(name, opts) {
        window.panelPop.openPanel(name, opts)
    },
    render() {
        let self = this
        let propName = window.G.propName
        return <div id='city'>
            <div className='head'>
                <div className='title'>城镇</div>
                <div className='desc'></div>
            </div>
            <div className=''>
                <Link to="/main/tavern">
                    <button>冒险者酒馆</button>
                </Link>
                <Link to="/main/smithy">
                    <button>铁匠屋</button>
                </Link>
                <Link to="/main/mansion">
                    <button>城镇公馆</button>
                </Link>
                <Link to="/main/tavern">
                    <button>旅店</button>
                </Link>
                <button>交易所</button>
                <button>仓库</button>
            </div>
        </div>
    }
})
